package cc.geguo.spring_a.anno;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 作者  Administrator
 * 时间  2017/2/24 9:35
 * 文件  Spring36_1
 * 描述  通过注入依赖生成对象
 */
public class App {

 @Test
 public void test() throws Exception{
	 ApplicationContext applicationContext = new ClassPathXmlApplicationContext("cc/geguo/spring_a/anno/anno.xml");
	 Obj3 obj3 = (Obj3) applicationContext.getBean("obj3");
	 obj3.ppObj3();
 }
}
